package com.xusj

import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

/**
  * Hello world!
  *
  */
object HelloWorld {

  def main(args: Array[String]): Unit = {

    val now: LocalDateTime = LocalDateTime.now()
    println("hello world!")

    val dateFormat: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")
    val date = dateFormat.format(now)

    println(date)
  }
}
